<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <div id="header">
    <span class="shouye"><a href="${pageContext.request.contextPath}/product/index">首页</a></span>
   
    <% if(session.getAttribute("user")!=null){ %>
     <span class="meInfo">
         <span class="me">Hello, ${userName}</span>
          <% if("customer".equals(session.getAttribute("type"))){ %>
            
           <a class="me" href="${pageContext.request.contextPath}/order/mine">我的订单</a>
           
           
          <%       
      }else if("provider".equals(session.getAttribute("type"))){  
        %>
     <a class="me" href="${pageContext.request.contextPath}/product/mine">我的产品</a>
      <%       
      }else if("employee".equals(session.getAttribute("type"))){  
        %>
         <a class="me" href="${pageContext.request.contextPath}/order/mine">我接收的订单</a>
         <a class="me" href="${pageContext.request.contextPath}/order/unconfirmOrders">未处理订单</a>
    
      <%       
        }  
     %>  
    &nbsp;<a class="me" href="${pageContext.request.contextPath}/logout">退出</a>
    </span>
    <%       
   }else{  
    %>
    
    <span class="meInfo">注册:<a href="${pageContext.request.contextPath}/customer/register">客户</a><a href="${pageContext.request.contextPath}/employee/register">员工</a><a href="${pageContext.request.contextPath}/provider/register">供应商</a>&nbsp;|&nbsp;<a href="${pageContext.request.contextPath}/login">登录</a></span>
    <%       
      }  
   %>  
   <div class="clear"></div>
</div>